<template>
  <div>
  <h2 >这是父组件</h2>
  <!-- <MySon :value='msg' @input='fn'></MySon> -->
   <!-- <MySon :value='msg' @input='msg = $event'></MySon> -->
   <MySon v-model="msg"></MySon>
  </div>
</template>

<script>
import MySon from "./components/MySon.vue";
export default {
  components:{
    MySon
  },
  data() {
    return {
      msg: '1234',
    };
  },
  methods: {
    // fn(e) {
    //   this.msg = e.target.value;
    // },

    fn(values){
         this.msg = values
    }
  },
 
};
</script>

<style scoped lang="less"></style>
